Testing measurements

ABSTRACT

An arbiter facility is provided that operates to control the flow of processes that form a test script. The control of the processes that are performed are based on explicit rules or conditions. The rules implemented by the arbiter facility result in different processes within the test script being performed based on data processed by the arbiter facility. Moreover, the arbiter facility implement rules which explicitly express, within the test case, the value of individual operations. In the exemplary embodiment, the value of one or more individual operations are explicitly expressed by the rules that are imposed on the results returned to the arbiter facility by the various verification points within the test script. Accordingly and advantageously, analysis on the value of a verification point may be performed prior to implementing or executing a test script. This analysis may then be reflected in the rule implemented in the arbiter facility.

This application is a continuation of application Ser. No. 10/294,248,filed Nov. 14, 2002, status allowed.

FIELD OF THE INVENTION

The present invention relates generally to the testing of computerapplications and, more particularly, to testing measurements.

BACKGROUND OF THE INVENTION

Most computer applications (hereinafter “applications”) are very complexsystems that, due to their complexity, require significant testing toensure that the application will execute as desired.

To facilitate the testing of applications, test cases or test suites(essentially a collection of test cases) are designed, implemented andused to test a portion or the whole of an application (often referred toas the subject under test). In many applications, these test casesmanipulate the external facade or interface of the subject under test.The results of these test cases are then analyzed and evaluated. As manyapplications are quite complex, several, sometimes hundreds, of testcases are used for the testing of a single application.

For example, a database application may need to be tested to determinewhether data can be added to the database (this is the test case). Atest script would need to be created to implement the test case. Theexemplary test script could include several steps, instructions orprocesses to test this aspect of the application including: gainingaccess to update the database, transmitting the update request;receiving confirmation that the update request has been executed;reading from the database to determine if the data in the update requestwas stored successfully; and then logging off from the database.

The processes or steps within a test script are executed linearly.Interspersed amongst these steps are one or more verification pointswhich are designed to gather data representative of the operation of thesubject under test. A verification point, when inserted into the testscript, will issue or output a binary value (usually a single bit ofdata—e.g., a boolean value) that indicates whether a step(s) with whichthe verification point is associated was successfully or unsuccessfullycompleted. The output of the test script execution, which includes thevalues output by the verification points, is typically stored in a testcase execution log.

The verification points also enable testers to analyze the test caseexecution log to ascertain which processes in the test case failed and,thus, which portions of the subject under test need to be investigatedto rectify any problems (i.e., solve any bugs in the application, ifnecessary).

If a tester desires to vary the linearity of the execution modelassociated with the test script, then the test script is exposed by thetesting tool and the tester manually modifies the test script (using,typically, a language proprietary to the testing tool being used).Unfortunately, this type of modification is not usually furthersupported by the testing tool. That is, the testing tool will executethe modifications and provide a mechanism to run and modify the testscript, but the test tool does not provide any advanced tools whichoperate in conjunction with the modifications.

As a consequence of the ability to make manual modifications, manyadvanced testers use testing tools to create only a skeleton of a testscript and add the “guts” or substance of the test script manually. Thistype of use leads to considerable costs for maintaining the testscripts.

Some testing tools presently on the market will terminate the executionof a test script as soon as a single verification point is reached whichindicates that an associated step was not performed successfully. Othertesting tools will attempt, if possible, to continue processing the testscript execution and outputting data from the verification points.

As a result of the data output by the verification points, a test scriptexecution will generate an output which indicates whether theapplication successfully or unsuccessfully performed the test case (thetest output). The test output of the test script execution (which is inaddition to test logs that are typically generated) is, like the outputof a verification point, a binary value. If even a single step in thetest script failed then the entire test script execution will output avalue also indicating failure of the execution of test script (i.e., theapplication failed in performing the test case). Only when all steps aresuccessfully performed will the test script output indicate successfulcompletion.

It will be appreciated that when a deadline for release of an importantapplication draws near, the application developers (the developmentteam) are under considerable stress to have the application ready forrelease with a minimum number of bugs or quality or stability relatedissues. At this time, review of the test output data generated by thetest scripts executions is often at its highest. During this review,much effort and time is spent attempting to ascertain the reason certaintest script execution has failed to complete successfully indicating alikely problem with the subject under test. It is common in theindustry, especially as deadlines loom, to disregard the test resultsfrom some test scripts execution for a variety of reasons. For example,a test script may be considered by the development team as testing an“unimportant” or “inconsequential” aspect of the subject under test.Other test scripts may be disregarded on an ad hoc basis because of adeveloper's intuition or experience indicating that the unsuccessfulresult from the execution of a test script was not as a result of afailure of the subject under test but rather another application orcomponent (e.g., the operating system, memory management, etc.).Unfortunately, this analysis is often inaccurate or misguided andpotentially results in the release of an unacceptable application.Moreover, the rationale for ignoring some test results while relying onothers is not documented which may prove unfortunate after a product hasbeen released.

In a further shortcoming of known systems, significant time may be spentanalyzing the unsuccessful results issued by a test script execution inan attempt to ascertain the cause(s) of the failure. This analysis ispremised on the possibility that all failures should be determined andthat most or sometimes all of the failures are the result of flaws orbugs in the subject under test. However, in some instances, the failuremay be the result of a failure in another portion of the computersystem(s) on which the subject under test is relying. In such aninstance, a developer or tester may have misspent significant time andenergy investigating a flaw which is not caused by the subject undertest.

For example, returning to the database example described above, supposethat the test script process for logging off from the database requiredtransmitting to the database a “logoff” command. Further assume that thedatabase itself (and not the application/subject under test) had aslight bug that issued an error message despite properly logging off auser. In this scenario, the verification point associated with theportion of the test script for logging off would output indication of afailure and the test script, even if every other process completedsuccessfully, would, as a result of the reported logoff failure, alsogenerate test output indicating a failure of the subject under test.Moreover, while this failing result may be technically accurate (i.e.,the test script did not successfully complete each of the processescontained therein) it is misleading and inaccurate in substance (i.e.,the subject under test actually successfully performed all of itsprocesses and only another element relied upon by the subject under testfailed). This situation could lead to significant time and energy beingspent by a developer attempting to eradicate a bug in the subject undertest which does not exist (the bug exists in the database).

Since a test script may incorporate several (sometimes hundreds) ofverification points, much effort needs to be expended to determine asource of a failure reported by a test script. In many circumstances,once the verification point reporting a failure which contributed (inwhole or in part) to the failure of a test script is identified, adeveloper or tester may decide that the identified verification pointcan be disregarded. This information is often not passed on to otherdevelopers or testers which often results in other developers or testerswasting time performing identifying the verification point and thenreaching the same conclusion to disregard the results. In othercircumstances, a decision reached by a developer to disregard one ormore verification points in a test script is made without significantthought or consideration and the resulting decision to disregard isflawed or faulty. Alternatively, one developer may conclude that resultsfrom a particular verification point can be disregarded while adifferent developer reaches a different conclusion. As a result of thistypes of situations, present test scripts and testing methodologies havesignificant shortcomings.

Accordingly, a testing measurement which addresses, at least in part,some of the shortcomings described above is desired.

SUMMARY OF THE INVENTION

The present invention is directed to a testing measurement apparatuses,systems, and tools which address, at least in part, some the variousdescribed shortcomings.

In accordance with an aspect of the present invention there is provideda tool for generating a test script for testing at least a portion of acomputer application, the test script comprising: a processor and amemory coupled to the processor. The memory comprises instructionswhich, when executed by the processor cause the processor to: output, bya first verification point, a first result indicative of a first test ofthe computer application; output, by a second verification point, asecond result indicative of a second test of the computer application;and output, by an arbiter facility, result data using the first result.The arbiter facility is further adapted to selectively execute thesecond test based on a value in the first result that is representativeof the importance of the first test.

In accordance with another aspect of the present invention there isprovided a test script for testing at least a portion of a computerapplication, said test script comprising: a processor and a memorycoupled to the processor. The memory comprises instructions which, whenexecuted by the processor cause the processor to: execute a predefinedexecution flow of a plurality of instructions, wherein the plurality ofinstructions test the portion of the computer application, thepredefined execution flow identifying at least one of: the order ofexecution of the plurality of instructions; and the instructions to beexecuted from the plurality of instructions; generate, by a firstverification point associated with at least one first instruction of theplurality of instructions, a first result indicative of the execution ofthe at least one first instruction; and modify, by an arbiter facility,responsive to the first result from the first verification point, thepredefined execution flow of the plurality of instructions based on avalue in the first result that is representative of the importance ofthe at least one first instruction.

In accordance with still another aspect of the present invention thereis provided a computer readable media storing instructions and data,wherein the instructions and data, when executed by a computer system,adapt the computer system to generate a test script for testing aportion of a computer application, the test script comprising: a firstverification point adapted to output a first result indicative of afirst test of the computer application; a second verification pointadapted to output a second result indicative of a second test of thecomputer application; and an arbiter facility adapted to output resultdata using at least one of the first and second results. The arbiterfacility is further adapted to selectively execute the second test basedon a value in the first result that is representative of the importanceof the first test.

In accordance with still another aspect of the present invention thereis provided a computer readable media storing data and instructions, thedata and instructions, when executed by a computer system, adapt thecomputer system to generate a test script for testing at least a portionof a computer application, the test script for adapting a computersystem to: responsive to data generated by a verification point, analyzethe data; and, responsive to analyzing the data, modify a predefinedexecution flow of the test script. The analysis of the data determines avalue in the data that is representative of the importance of theverification point.

In accordance with still another aspect of the present invention thereis provided a computer readable media storing data and instructions, thedata and instructions, when executed by a computer system, adapt thecomputer system to test a portion of a computer application using a testscript, the test script adapting the computer system to: responsive todata generated by each of a plurality of verification points, employexpressed verification point valuation rules to value each of theplurality of verification points; and generate a test script outputresponsive to the value of each of the verification points. The value ofeach of the verification points is representative of the importance ofeach verification point.

In accordance with still another aspect of the present invention thereis provided an apparatus for testing at least a portion of a computerapplication using a test script, the apparatus comprising: a processorand a memory coupled to the processor. The memory comprises instructionswhich, when executed by the processor, cause the processor to:responsive to data generated by a verification point, analyze the data,where analyzing the data determines a value in the data that isrepresentative of the importance of the verification point; and,responsive to analyze the data, modify a predefined execution flow ofthe test script.

In accordance with still another aspect of the present invention thereis provided an apparatus for testing at least a portion of a computerapplication using a test script, the apparatus comprising: a processorand a memory coupled to the processor. The memory comprises instructionswhich, when executed by the processor, cause the processor or:responsive to data generated by each of a plurality of verificationpoints, employ expressed verification point valuation rules to valueeach of the plurality of verification points; and generate the testscript output responsive to the value of each of the plurality ofverification points. The value of each of the plurality of verificationpoints is representative of the importance of each verification point.

Other aspects and features of the present invention will become apparentto those ordinarily skilled in the art upon review of the followingdescription of specific embodiments of the invention in conjunction withthe accompanying figures.

BRIEF DESCRIPTION OF THE DRAWINGS

In the figures which illustrate an example embodiment of this invention:

FIG. 1 schematically illustrates a computer system embodying aspects ofthe invention;

FIG. 2 schematically illustrates, in greater detail, a portion of thecomputer system of FIG. 1;

FIG. 3 illustrates, in functional block form, a portion of FIG. 2;

FIG. 4 illustrates in greater detail and in functional block form aportion of FIG. 3;

FIG. 5 illustrates in greater detail a portion, in functional blockform; of FIG. 4;

FIG. 6 is first exemplary source code embodying aspects of the portionof the invention illustrated in FIG. 5;

FIG. 7 is second exemplary source code embodying aspects of the portionof the invention illustrated in FIG. 5; and

FIG. 8 is a flow chart illustrating the operations performed by firstand second source code of FIGS. 5 and 6, respectively.

DETAILED DESCRIPTION

An embodiment of the invention, computer system 100, is illustrated inFIG. 1. Computer system 100, illustrated for exemplary purposes as anetworked computing device, is in communication with other networkedcomputing devices (not shown) via network 108. As will be appreciated bythose of ordinary skill in the art, network 108 may be embodied usingconventional networking technologies and may include one or more of thefollowing: local area networks, wide area networks, intranets, publicInternet and the like. Computer system 100 may interact with othernetworked computer systems (not shown) providing application testing andanalysis of a distributed application.

Throughout the description herein, an embodiment of the invention isillustrated with aspects of the invention embodied solely on computersystem 100. As will be appreciated by those of ordinary skill in theart, aspects of the invention may be distributed amongst one or morenetworked computing devices which interact with computer system 100 viaone or more data networks such as, for example, network 108. However,for ease of understanding, aspects of the invention have been embodiedin a single computing device—computer system 100.

Computer system 100 includes processing system 102 which communicateswith various input devices 104, output devices 106 and network 108.Input devices 104, two of which are shown, may include, for example, akeyboard, a mouse, a scanner, an imaging system (e.g., a camera, etc.)or the like. Similarly, output devices 106 (only one of which isillustrated) may include displays, information display unit printers andthe like. Additionally, combination input/output (I/O) devices may alsobe in communication with processing system 102. Examples of conventionalI/O devices include removable and fixed recordable media (e.g., floppydisk drives, tape drives, CD-ROM drives, DVD-RW drives, etc.), touchscreen displays and the like.

Exemplary processing system 102 is illustrated in greater detail in FIG.2. As illustrated, processing system 102 includes severalcomponents—central processing unit (CPU) 202, memory 204, networkinterface (I/F) 208 and I/O I/F 210. Each component is in communicationwith the other components via a suitable communications bus 206 asrequired.

CPU 202 is a processing unit, such as an Intel Pentium™, IBM PowerPC™,Sun Microsystems UltraSparc™ processor or the like, suitable for theoperations described herein. As will be appreciated by those of ordinaryskill in the art, other embodiments of processing system 102 could usealternative CPUs and may include embodiments in which one or more CPUsare employed. CPU 202 may include various support circuits to enablecommunication between itself and the other components of processingsystem 102.

Memory 204 includes both volatile and persistent memory for the storageof: operational instructions for execution by CPU 202, data registers,application storage and the like. Memory 204 preferably includes acombination of random access memory (RAM), read only memory (ROM) andpersistent memory such as that provided by a hard disk drive.

Network I/F 208 enables communication between computer system 100 andother network computing devices (not shown) via network 108. Network I/F208 may be embodied in one or more conventional communication devices.Examples of a conventional communication device include an Ethernetcard, a token ring card, a modem or the like. Network I/F 208 may alsoenable the retrieval or transmission of instructions for execution byCPU 202 from or to a remote storage media or device via network 108.

I/O I/F 210 enables communication between processing system 102 and thevarious I/O devices 104, 106. I/O I/F 210 may include, for example, avideo card for interfacing with an external display such as outputdevice 106. Additionally, I/O I/F 210 may enable communication betweenprocessing system 102 and a removable media 212. Although removablemedia 212 is illustrated as a conventional diskette other removablememory devices such as Zip™ drives, flash cards, CD-ROMs, static memorydevices and the like may also be employed. Removable media 212 may beused to provide instructions for execution by CPU 202 or as a removabledata storage device.

The computer instructions/applications stored in memory 204 and executedby CPU 202 (thus adapting the operation of computer system 100 asdescribed herein) are illustrated in functional block form in FIG. 3. Aswill be appreciated by those of ordinary skill in the art, thedelineation between aspects of the applications illustrated asfunctional blocks in FIG. 3 is somewhat arbitrary as the variousoperations attributed to a particular application as described hereinmay, in alternative embodiments, be subsumed by another application.

As illustrated, for exemplary purposes only, memory 202 stores operatingsystem (OS) 302, communications suite 304, test tool 306, test script308, test output file 310 and the application under test 312(hereinafter “application 312”).

OS 302 is an operating system suitable for operation with a selected CPU202 and the operations described herein. Multitasking, multithreadedOSes such as, for example, IBM AIX™, Microsoft Windows NT™, Linux or thelike, are expected in many embodiments to be preferred.

Communication suite 304 provides, through, interaction with OS 302 andnetwork I/F 208 (FIG. 2), suitable communication protocols to enablecommunication with other networked computing devices via network 108(FIG. 1). Communication suite 304 may include one or more of suchprotocols such as TCP/IP, ethernet, token ring and the like.

Test tool 306 is used by testers and developers to generate test scripts308 which, when executed, test aspects of application 312 and generatetest output file 310. Test tool 306 may be adapted from conventional orknown test tools to perform the functions described herein. Test tool306 may be used to: partially automate the entire testing process fromgenerating test script 308; test application 312 using test script 308;and present the data in test output file 310 output by test script 308.Test tool 306 is used to generate test scripts which include thefunctionality of the arbiter facility described below.

An exemplary test script 308, illustrated in logical organization inFIG. 4, illustrates the various components contained therein and therelationships therebetween. Generally, a test script 308 embodyingaspects of the present invention will include an arbiter facility 402,and one or more testing portions 404 (several testing portions areillustrated—404 a, 404 b, 404 c, . . . , 404 i). During execution of atest script 308 one or more of the testing portions 404 may be executed.The result of an executed testing portion 404 is generated or output byone or more verification points included as part of the testing portion.The result from a testing portion 404 is then used by arbiter facility402 to direct which further test portions 404 are executed and/or togenerate the data which is output by test script 308.

A testing portion 404 includes one or more processes (e.g.,instructions, steps, etc.) 406 and one or more verification points 408.A verification point 408 uses the results generated by the execution ofprocess(es) 406 to generate data representative of the success orfailure of testing portion 402. As described in related applicationCA9-2001-0092 entitled “TESTING MEASUREMENTS” and hereby incorporatedherein by reference or, alternatively, attached hereto as Appendix A,data output by a verification point 408 and, consequently, testingportion 404 may output a binary or boolean value (e.g., TRUE/FALSE, 0/1,ON/OFF, etc.) or may output a non-boolean or non-binary valuerepresentative of, for example, the relative success of execution ofprocesses 406.

Processes 406 (processes 406 a-406 i are illustrated) are the varioussteps or processes that are performed to test application 312. This mayinclude, for example, transmitting data used as input to a userinterface of application 312, issuing commands to application 312 andthe like.

Each testing portion 404 (which may also be a test script with orwithout an arbiter facility 402) may or may not be executed as part oftest script 308. Moreover, the order in which testing portions 404 areexecuted is not fixed like a conventional test script but may be dynamicbased on the operation of arbiter facility 402. Whether a selectedtesting portion 404 is executed is also determined by the operation ofarbiter facility 402.

An exemplary arbiter facility 402 is illustrated in greater detail infunctional block form in FIG. 5. Arbiter facility 402 includes threefunctional block: initialization 502; process flow control rules 504;and verification point value rules 506. As those of ordinary skill inthe at will appreciate, the functional blocks of arbiter facility 402,which are described in greater detail below, may be rearranged,reordered or reorganized into a different number of functional blockswhile performing the operations described herein. For example, in theexemplary embodiment shown as JAVA language source code in FIGS. 6 and7, the process flow control rules 504 span both source code files.

Arbiter facility 402 receives input (i.e., data) or uses input from oneor more testing portions 402 to generate test script output 310. Datareceived or used by arbiter facility 402 is used by both process flowcontrol rules 504 and verification point value rules 506. It should benoted that not all data received by arbiter facility 402 will be used byeither process flow control rules 504 or verification point value rules506. Moreover, some data used by process flow control rules 504 may notbe used by verification point value rules 506 and vice versa.

Initialization 502 initializes arbiter facility 402 for furtheroperation. This initialization may include, for example, setting ofvariables, instantiating objects of various classes, allocating memoryand the like.

Process flow control rules 504 allow arbiter facility 402 to dynamicallyorder the execution of testing portions 404 and to dynamically determinewhich testing portions 404 are to be executed. This dynamic aspect ofarbiter facility 402 uses data received from executed testing portions404. That is, test script 308 through arbiter facility 402 and, moreparticularly, flow control rules 504, will operate differently (i.e.,different order of execution of testing portions 404 and/or differenttesting portions 404 being executed) depending on the results receivedfrom one or more verification points 408 of one or more executed testingportions 404.

For example, a first testing portion 404 (testing portion 404 a, forexample) may be used to determine, at a high or gross level of detail,whether a certain function of subject under test 312 (FIG. 3) isoperating as designed. A second testing portion 404 (testing portion 404b, for example) may be designed to test more detailed aspects of thefunction (i.e., at a low or fine level of detail) if the same functionis operating as designed. Accordingly, through operation of process flowcontrol rules 504, arbiter facility 402 may first execute the firsttesting portion to ascertain or determine, at a gross level of detail,whether the function operated as designed (e.g., SUCCESSFULLY). Onceexecuted, arbiter facility 402 will receive data from verification point408 a indicating this state. If, the function performed successfully,arbiter facility 402, using the received data may then terminate theexecution of test script 308 and output data indicate that the functionperformed successfully. However, in the instance where the subject undertest has not performed satisfactorily, arbiter facility 402, throughoperation of process flow control rules 504 using input fromverification point 408 a, may then determine that additional data as tothe unsatisfactory operation of the subject under test is required.Accordingly, in this instance arbiter facility 402 will then call (i.e.,have executed) testing portion 402 b. Testing portion 402 b, throughoperation of verification point 408 b, will provide arbiter facility 402with additional data to analyze or process enabling a more detailed anduseful test script output 310 to be generated.

As a consequence of the above example, persons of ordinary skill in theart will appreciate that the order of execution of testing portions 404and whether a particular testing portion is executed in test script 308is dynamically determined based on the data received by the arbiterfacility from the execution of executed testing portions 404. This is incontrast to conventional test scripts where the order of execution isfixed at the time of creation of the test script and the testingportions executed are also fixed at the same time.

Verification point value rules 506 explicitly express the value to beattributed to the output of a verification point 408 of a testingportion 404. Unlike conventional test scripts where the report of asingle failure from one verification point results in the output ofFAILURE from the test script as a whole, the value of a test outputreceived from a verification point can be weighted by an explicitexpression within verification point value rules 506. Moreover, unlikeconventional test scripts which implicitly define a rule whicheffectively ‘AND’s the boolean verification point results received, amore complex and considered assessment of the verification point resultscan be implemented in verification point value rules 506. Thismodification of the explicit valuation of a verification point isdocumented and, thus, available for review and consideration by otherdevelopers.

For example, returning to the database example described above in thebackground, verification point value rules 508 could be implemented tovalue as more important the transmitting of an update request andverification that the request was properly handled and value ascomparatively less important processes or instructions of gaining access(e.g., logging on) to the database and logging off the database. Thisaspect of explicit weighting or valuing of individual verificationpoints enables developers to consider the value of a verification pointduring the implementation of a test case rather than at the end of thedevelopment cycle. Moreover, the valuation of one or more verificationpoints can easily be adjusted and expressed by a developer throughmodification of verification value rules 506.

It is to be noted that not all data received by arbiter facility 402need be used by verification point value rules 506 to generate testscript execution output (stored in test output 310—FIG. 3). That is,some data received by arbiter facility 402 from verification points 408may not be used during operation of verification point value rules 506.Similarly, not all data received by arbiter facility 402 need be used byprocess flow control rules 504 to dynamically determine which testingportions 404 to execute and the order thereof. Further, data from asingle verification point 408 may be used by both process flow controlsrules 504 and verification point value rules 506.

An exemplary portion of a test script 308 which includes an arbiterfacility 402 and is embodied in a JAVA language object, is illustratedin FIGS. 6 and 7 (each of which, due to its length, is illustrated ontwo separate drawing sheets). That is, the arbiter facility 402 spanstwo separate source code files illustrated separately in FIGS. 6 and 7.The operations of the exemplary test script 308 and, more particularly,the operations of arbiter facility 402 are illustrated in FIG. 8 asoperations 800.

The exemplary arbiter facility 402 is used as part of a test script 308which implements a test case for a photographic dark room application312. In the test case there are two testing portions 404 (which are notillustrated)—DoorVP and RoomVP. The test case implemented as the testscript, which includes the exemplary arbiter facility 402 of FIG. 6(hereinafter the “DarkRoomArbiter 402”), tests an application 312 whichis to be used to certify whether a photographic darkroom is sufficientlydark to be useable as a darkroom. A darkroom may have several doors toprovide access to the room and each door may enable a certain amount oflight to leak into the room. The application under test includes severallight sensors (one for each door) which send data representative theamount of light received by the sensor for a particular door.Additionally, a centrally mounted light sensor, which can receive lightfrom any direction, sends data representative of the amount of lightreaching a central position within the room.

DarkRoomArbiter 402 returns (i.e., generates or outputs) a singleboolean value (FAILED or SUCCEED). However, other outputs (e.g.,different output data types, non-boolean outputs, multiple outputs)could alternatively be employed.

The first testing portion 404—DoorVP—includes several processes 406(referred to as “instructions” in the JAVA code) and a singleverification point 408. The DoorVP verification point outputs an arraycontaining boolean values (SUCCEED or FAILED) for each light sensorassociated with a door. The processes within the DoorVP testing portionare designed to test whether data is being received by the applicationunder test from each of the sensors.

The second testing portion 404—RoomVP—includes several processes 406 anda single verification point 408. The RoomVP testing portion is designedto test whether the application under test is receiving data fromcentrally positioned light sensor (the room light sensor) representativeof the light collected. The verification point 408 associated with thistesting portion returns a single boolean value (SUCCEED or FAILED) (incontrast to the DoorVP testing portion which returns an array of booleanvalues). A FAILED return value, indicates that data was not properlyreceived by the application under test. A SUCCEED indicates theopposite.

Operations 800, illustrated as a flow chart in FIG. 8, are performed bytest script 308. Referencing operations 800 of FIG. 8, the exemplarytest script 308 commences execution and there exists a predefined flowof execution of testing portions 404 (S802). But, as is described below,this predefined flow of execution may be changed (i.e., altered ormodified) based on analysis performed on the results generated byindividual verification points (S808). For each instruction of a testingportion 404 which is executed (S804), a determination is made as towhether an instruction executed is a verification point 408 (S806). Ifit is determined that the executed instruction is not a verificationpoint, execution of further instructions (if further instructionsexist—S810) are executed (S804). However, if an executed instruction isdetermined to be a verification point (S806), analysis of the resultsgenerated by the verification point 408 are performed (S808). Theresults of the analysis of an individual verification are then used byarbiter function 402 (this portion forming part of FIG. 7) to alter theflow of execution of further instructions. Once all of the necessaryinstructions are executed (which, due to the analysis performed on oneor more verification points—S808, and any resulting execution flowmodification, may not be all of the instructions forming testingportions 404), a further analysis of all or some of the data generatedby the verification points is performed (S812). Execution of the testscript 308 is then completed. As will be appreciated by those ofordinary skill in the art, some reordering of the operations S802-S812can be made in alternative embodiments of the present invention.

Referencing the source code forming part of FIGS. 6 and 7, over whicharbiter facility 402 spans, FIG. 6 includes initialization 502 (FIGS. 5and 6). Initialization 502 consists of setting a variable whichindicates the maximum number of FAILs from the DoorVP testing portion.Initialization 502 also provides a check to ensure that DarkRoomArbiter402 is communicated with the appropriate test case.

The process flow control rules 504 are, in the exemplary embodiment,executed once for each verification point 408 in the test script 308.Process flow control rules 504 are processed whenever a verificationpoint has reported its results.

Process flow control rules includes aspects embodied and illustrated inFIGS. 6 and 7. Initially, a loop 702 predefines the flow of execution ofthe test script. Loop 702 attempts to iterate through each instructionof the testing portions 404 being executed (this corresponds tooperation S802—FIG. 8). However, as indicated by source portions 704 and706, for each instruction executed, a determination is made as towhether the instruction forms part of a RoomVP testing portion or aDoorVP testing portion (S806). The results generated by the verificationpoint associated with the respective testing portions are then analyzed(source portions 708 and 710). The analysis of a verification point isperformed by the process flow control rules 504 illustrated in FIG. 6.The results of an analysis is then used by the source code illustratedin FIG. 7 to modify the predefined execution flow originally defined byloop 702 (S808).

As will be appreciated, the determination of whether an instruction is averification point (S806), the analysis of the verification point andany resulting modification of the predefined order and inclusion ofinstructions which are executed (S808) span the source code filesillustrated in FIGS. 6 and 7.

As will be appreciated, the exemplary embodiment provides only simpleprocess flow control rules 504. However, more complex rules could beequally be employed (e.g., combinations of one or more of: branchinginstructions; loops; linear execution; etc.).

By modification of the process flow control rules 504 very complexscenarios and operations can be implemented. Moreover, the dynamicnature of arbiter facility 402 as a result, in part, of the process flowcontrol rules can provide developers with a sophisticated method fortesting a subject under test.

In the DarkRoomArbiter 402 embodiment, the verification point valuesrules 506 consist of a loop which apply different processes depending onwhether, in an iteration through the loop of the verification pointvalues rules, the testing portion being analyzed is a DoorVP or aRoomVP. If the testing portion 404 is a DoorVP, rule 602 (DoorVP rule602) is applied. If the testing portion 404 is a RoomVP, rule 604(RoomVP rule 602) is applied. Other or additional rules could equally beapplied.

DoorVP rule 602 explicitly expresses that the application under testshould not FAIL unless more than a defined threshold of failures isreached. This threshold is defined by the variable set duringinitialization 502. In the exemplary embodiment, if there is a failureto receive data from more than four light sensors associated with thedoors, then the application under test is to be considered to havefailed the test case. The formula or explicitly expressed rule in theexemplary embodiment is an addition formula in contrast to the implicitANDing formula in conventional test scripts. Other and differentformulas could have been applied. For example, one light sensorassociated with the main door to the darkroom could generate morevaluable data then other doors leading to different portions of thedarkroom. As such, data from this light sensor could be weighted by, forexample, increasing the count of FAILEDs by a number larger than one ordiscounting FAILEDs received from the verification points associatedwith the other light sensors.

If it is determined, during an iteration of the loop of verificationpoint value rules 506, that data is being received from the verificationpoint of the RoomVP testing portion, then a different rule, RoomVP rule604, is applied. RoomVP rule 604 results in the termination of executionof test script 308 and the output of a FAILED. The explicitness ofRoomVP rule 604 expresses the relative weight of the results generatedfrom a verification point associated with a RoomVP testing portion andthe weight associated with results generated from a verification pointassociated with a DoorVP testing portion. That is, if data is notreceived from a single light sensor associated with a door, the test maystill be considered a success. However, if data is not received from thesingle, centrally located room sensor, then the application isconsidered to have FAILED the test. Thus, the proper operation of theapplication to receive data from the centrally located room sensor is ofmuch greater importance than the proper operation for receiving datafrom the other light sensors.

If, prior to data being received or analyzed from a verification pointassociated with the DoorVP testing portion, the threshold is reached,then execution of test script 308 is terminated and a FAILED is outputby test script 308 (through operation of arbiter facility 402). As aconsequence of this action, the analysis of the various verificationpoint data received is also dynamically altered by arbiter facility 402.Other changes to the flow of the processing or analyzing of verificationpoint data from testing portions 404 could have equally been employed.For example, arbiter 402 could analyze the data received from RoomVPtesting portion 404 first. If data was not received from the lightsensor being testing, then the execution of test script 308 could beterminated as this is the most important sensor being used. This featuremay shorten the execution time of test scripts providing results morequickly to developers and more relevant or important data more quickly.

The explicit nature of the verification point value rules providesignificant benefits to the developer. Moreover, because relativeweights can be applied to the results received from various verificationpoints, the relative importance of a verification point can be reflectedin the output from test script 308 and be used to dynamically affectfurther processing of test script 308. Moreover, the rationale forvaluing certain data generated by a selected verification point to agreater or lesser degree than data generated by another verificationpoint will be expressed explicitly by the verification point valuerules.

As will be appreciated by those of ordinary skill in the art,embodiments of the invention may be preferably embodied in computersoftware. However, alternative embodiments may be embodied in acombination of hardware and software or in hardware alone.

While the arbiter facility described herein outputs a single booleanvalue, alternative embodiments could equally output: a singlenon-boolean value; a plurality of values (boolean or otherwise); or acombination of boolean and non-boolean values.

As will be appreciated by those skilled in the art, modifications to theabove-described embodiment can be made without departing from theessence of the invention.

While one (or more) embodiment(s) of this invention has been illustratedin the accompanying drawings and described above, it will be evident tothose skilled in the art that changes and modifications may be madetherein without departing from the essence of this invention. All suchmodifications or variations are believed to be within the sphere andscope of the invention as defined by the claims appended hereto. Othermodifications will be apparent to those skilled in the art and,therefore, the invention is defined in the claims.

1. A tool for generating a test script for testing a portion of acomputer application, the test script comprising: a processor; and amemory coupled to the processor, wherein the memory comprisesinstructions which, when executed by the processor, cause the processorto: output, by a first verification point, a first result indicative ofa first test of the computer application; output, by a secondverification point, a second result indicative of a second test of thecomputer application; and output, by an arbiter facility, result datausing the first result, wherein the arbiter facility is further adaptedto selectively execute the second test based on a value in the firstresult that is representative of the importance of the first test. 2.The tool of claim 1: wherein the first test comprises a firstinstruction and the first verification point outputs the first resultfollowing execution, of the first instruction; and wherein the secondtest comprises a second instruction and the second verification pointoutputs the second result following execution of the second instruction.3. The tool of claim 1 wherein said arbiter facility comprises one ormore of: verification point valuation rules; and flow control rules. 4.A test script for testing a portion of a computer application, the testscript comprising: a processor; and a memory coupled to the processor,wherein the memory comprises instructions which, when executed by theprocessor, cause the processor to execute a predefined execution flow ofa plurality of instructions, wherein the plurality of instructions testthe portion of the computer application, the predefined execution flowidentifying at least one of: the order of execution of the plurality ofinstructions; and the instructions to be executed from the plurality ofinstructions; generate; by a first verification point associated with atleast one first instruction of the plurality of instructions, a firstresult indicative of the execution of the at least one firstinstruction; and modify, by an arbiter facility, responsive to the firstfrom the first verification point, the predefined execution flow of theplurality of instructions based on a value in the first result that, isrepresentative of the importance of the at least one first instruction.5. The test script of claim 4 wherein said adaptation to modify saidpredefined execution flow of said plurality of instructions comprises atleast of: executing only selected subset of said plurality ofinstructions; and rearranging the order of execution of at least aportion of said plurality of instructions.
 6. The test script of claim 4wherein said adaptation to modify said predefined execution flow of saidplurality of instructions comprises employing flow control executionrules to modify said predefined execution flow.
 7. The test script ofclaim 4 further comprising: a second verification point associated withat least one second instruction of the plurality of instructions, thesecond verification point adapted to generate a second result indicativeof the execution of the at least one second instruction; and the arbiterfacility further adapted to determine the value for each of the firstand second results generated by the first and second verificationpoints; wherein the adaptation to determine the value comprisesemploying at least one of a formula for assigning a weighted value tothe first and second results, wherein the weighted value indicates theimportance of each result, or verification point valuation rules to thefirst and second results.
 8. The test script of claim 4 wherein thefirst result of the first verification point comprises one or more of: aboolean value and a non-boolean value.
 9. A computer readable mediastoring instructions and data, wherein the instructions and data, whenexecuted by a computer system, adapt the computer system to generate atest script for testing a portion of a computer application, the testscript comprising: a first verification point adapted to output a firstindicative of a first test of the computer application; a secondverification point adapted to output a second result indicative of asecond test of the computer application; and an arbiter facility adaptedto output result data using at least one of the first and secondresults, wherein the arbiter facility is, further adapted to selectivelyexecute the second test based on a value in the first result isrepresentative of the importance of the first test.
 10. The computerreadable media of claim 9 wherein the first test comprises firstinstruction and verification point outputs the first result followingexecution of the first instruction; and wherein the second testcomprises a second instruction and the verification point outputs thesecond result following execution of the second instruction.
 11. Thecomputer readable media of claim 9 wherein said arbiter facilitycomprises one or more of: verification point valuation rules; and flowcontrol rules.
 12. A computer readable media storing data andinstructions, the data and instructions, when executed by a computersystem, adapt the computer system to generate a test script for testinga portion of a computer application, the test script for adapting acomputer system to: responsive to data generated by a verificationpoint, analyze the data; and responsive to analyzing the data, modify apredefined execution flow of the test script, wherein analyzing the datadetermines a value in the data that is representative of the importanceof the verification point.
 13. The computer readable media of claim 12wherein said test script comprises a plurality of instructions andwherein said adaptation to modify adapts said computer system to:execute only selected subset of said plurality of instructions; andrearrange the order of execution of at least a portion of said pluralityof instructions.
 14. The computer readable media of claim 12 whereinsaid adaptation to modify comprises adapting said computer system toemploy flow control execution rules to modify said predefined executionflow.
 15. A computer readable media storing, data and instructions, thedata and instructions, when executed by a computer system, adapt thecomputer system to test a portion of a computer application using a testscript, the test script adapting the computer system to: responsive todata generated by each of a plurality of verification points, employexpressed verification point valuation rules to value each of theplurality of verification points; and generate a test script outputresponsive to the value of each of the verification points, wherein thevalue of each of the verification points is representative of theimportance of each verification point.
 16. The computer readable mediaof claim 15 wherein the adaptation to employ expressed verificationpoint valuation rules comprises an adaptation to employ a formulaassigning a weighted value to each of the results, wherein the weightedvalue indicates the importance of each result.
 17. The computer readablemedia of claim 15 wherein a result of a verification point comprises oneor more of: a boolean value and a non-boolean value.
 18. The computerreadable media of claim 15 wherein said adaptation to generate a testscript output comprises an adaptation to generate one or more values,said one ore more values comprising one or more of boolean values; andone or more non-boolean values.
 19. An apparatus for testing at least aportion of a computer application using a test script, the apparatuscomprising: a processor; and a memory coupled to the processor, whereinthe memory comprises instructions which, when executed by the processor,cause the processor to responsive to data generated by a verificationpoint, analyze the data, wherein analyzing the data determines a valuein the data that is representative of the importance of the verificationpoint; and responsive to analyzing the data, modify a predefinedexecution, flow of the test script.
 20. The apparatus of claim 19,wherein the instructions to modify the predefined execution flow of thetest script further causes the processor to: execute only selectedsubset of a plurality of test script instructions associated with thetest script; and rearrange an order of execution of at least a portionof the plurality of test script instructions.
 21. The apparatus of claim19 wherein the instructions to modify the predefined execution flow ofthe test script further causes, the processor to: employ flow controlexecution rules to modify the predefined execution flow.
 22. Anapparatus for testing a portion of a computer application using a testscript, the apparatus comprising: a processor; and a memory coupled tothe processor, wherein the memory comprises instructions which, whenexecuted by the processor, cause the processor to: responsive to datagenerated by each of a plurality of verification points, employexpressed verification point valuation rules to value each of theplurality of verification points; and generate the test script outputresponsive to the value of each of the plurality of verification points,wherein the value of each of the plurality of verification points isrepresentative of the importance of each verification point.
 23. Theapparatus of claim 22 wherein the instructions to employ the expressedverification point valuation rules further causes the processor to:employ a formula assigning a weighted value to the value of each of theplurality of verification points, wherein the weighted value indicatesthe importance of the value of each of the plurality of verificationpoints.
 24. The apparatus of claim 22 wherein the value of each of theplurality of verification points comprises one or more of: a booleanvalue and a non-boolean value.
 25. The apparatus of claim 22 wherein theinstructions to generate the test script output further causes theprocessor to: generate one or more values, wherein the one or morevalues comprises one, or more of: boolean values and non-boolean values.